<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>随心记账-欢迎</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css">
</head>
<body>
<header>
    <nav class="navbar navbar-expand-lg navbar-light bg-light">
        <div class="container">
            <a class="navbar-brand" href="/index">随心记账</a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNavDropdown">
                <ul class="navbar-nav ms-auto">
                    <li class="nav-item">
                        <a class="nav-link" th:href="@{/login}">登录</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" th:href="@{/register}">注册</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
</header>
<main class="mt-4">
    <div class="container text-center">
        <h1>随心记账</h1>
        <p>详细但简明的逻辑，让你快速了解花销流水。</p>
        <p>基于Spring Boot开发的Web应用，保证全平台兼容。</p>
        <!-- 新增功能演示按钮 -->
        <div class="mt-3">
            <a class="btn btn-primary" th:href="@{/index}">功能演示</a>
        </div>
    </div>
</main>
<footer class="mt-4 py-4 bg-light">
    <div class="container text-center">
        <p>版权所有 © 随心记账</p>
        <p>备案/审计信息等</p>
        <a href="/privacy">隐私政策</a> | <a href="/terms">服务条款</a>
    </div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
